﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TANKWAR_alpha
{
    /*
     * this class is used to get the location of exploding
     * 
     */
    class Explorer
    {
        private double x;
        private double y;
        private bool life;
        public int showtimes;
        private int type;  //0 for hitting the RobotTank,1 for hitting the ReWall
        public Explorer(double  _x,double  _y,int ty)
        {
            x = _x;
            y = _y;
            life = true;
            type = ty;
            showtimes = 0;
        }
        
        public int ExplodeType
        {
            get { return type; }
            set { type = value; }
        }
        public double X
        {
            get { return x; }
            set { x = value; }
        }
        public double Y
        {
            get { return y; }
            set { y = value; }
        }
        public bool ExplodeLife
        {
            get { return life; }
            set { life = value; }
        }
    }
}
